package presentation;

import donnees.dao.FilmDao;
import donnees.dao.ProjectionDao;
import donnees.dao.SalleDao;
import donnees.dao.VipDao;
import donnees.modele.Acteur;
import donnees.modele.Journaliste;
import donnees.modele.Participant;
import donnees.modele.Producteur;
import donnees.modele.Projection;
import donnees.modele.Realisateur;
import donnees.modele.Sponsor;
import donnees.modele.Vip;
import donnees.outils.HibernateUtil;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JOptionPane;
import modeles.ModeleFilm;
import modeles.ModeleSalle;
import modeles.ModeleTableProjection;
import modeles.ModeleTableVip;

public class Fenetre extends javax.swing.JFrame {

    private ModeleTableVip tableVip;
    private VipDao vipDao;
    private Vip vipSelec;
    private Projection projSelec;
    private ModeleTableProjection tableProj;
    private ProjectionDao projDao;
    private SalleDao salleDao;
    private FilmDao filmDao;
    private ModeleSalle modeleSalle;
    private ModeleFilm modeleFilm;
    private DateFormat df;
    private boolean boolVIP;
    private boolean boolProj;

    public Fenetre() {
        df = new SimpleDateFormat("dd/MM/yyyy");
        tableVip = new ModeleTableVip();
        tableProj = new ModeleTableProjection();
        modeleSalle = new ModeleSalle();
        modeleFilm = new ModeleFilm();
        vipDao = new VipDao();
        projDao = new ProjectionDao();
        salleDao = new SalleDao();
        filmDao = new FilmDao();
        boolVIP = false;
        boolProj = false;
        initComponents();
        setVisibleFalse();
        Accueil.setVisible(true);
        tablePAffichage.setRowSelectionAllowed(true);
        tablePAffichage.setColumnSelectionAllowed(false);
        this.setLocationRelativeTo(null); //Place la fenêtre au milieu de l'écran
    }

    private void setVisibleFalse() {
        Accueil.setVisible(false);
        VIPAuthentification.setVisible(false);
        VIPAffichage.setVisible(false);
        VIPSelection.setVisible(false);
        VIPAjouter.setVisible(false);
        ProjectionsAccueil.setVisible(false);
        ProjectionsAuthentification.setVisible(false);
        ProjectionsAffichage.setVisible(false);
        ProjectionsModifier.setVisible(false);
        ProjectionsAjouter.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane5 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        selection = new javax.swing.ButtonGroup();
        ajouter = new javax.swing.ButtonGroup();
        Accueil = new javax.swing.JPanel();
        planning = new javax.swing.JButton();
        quitter = new javax.swing.JButton();
        banniere = new javax.swing.JLabel();
        vip = new javax.swing.JButton();
        jPanel33 = new javax.swing.JPanel();
        jLabel216 = new javax.swing.JLabel();
        jPanel34 = new javax.swing.JPanel();
        jLabel215 = new javax.swing.JLabel();
        VIPAuthentification = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        identifiantVIPAuthentification = new javax.swing.JTextField();
        motDePasseVIPAuthentification = new javax.swing.JPasswordField();
        jLabel3 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        connexionVIPAuthentification = new javax.swing.JButton();
        accueilVIPAuthentification = new javax.swing.JButton();
        jLabel214 = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jLabel218 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jPanel31 = new javax.swing.JPanel();
        jLabel223 = new javax.swing.JLabel();
        VIPAffichage = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        tableVIPAffichage = new javax.swing.JTable();
        jPanel2 = new javax.swing.JPanel();
        deconnexionVIPAffichage = new javax.swing.JButton();
        ajouterVIPAffichage = new javax.swing.JButton();
        accueilVIPAffichage = new javax.swing.JButton();
        modifierVIPAffichage = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jLabel217 = new javax.swing.JLabel();
        VIPSelection = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        ageVIPSelection = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        prenomVIPSelection = new javax.swing.JTextField();
        nomVIPSelection = new javax.swing.JTextField();
        nationaliteVIPSelection = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        coefVIPSelection = new javax.swing.JList();
        compagnonVIPSelection = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        realisateurVIPSelection = new javax.swing.JRadioButton();
        acteurVIPSelection = new javax.swing.JRadioButton();
        journalisteVIPSelection = new javax.swing.JRadioButton();
        producteurVIPSelection = new javax.swing.JRadioButton();
        sponsorVIPSelection = new javax.swing.JRadioButton();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jPanel25 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        niveauVIPSelection = new javax.swing.JList();
        jLabel15 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        employeurVIPSelection = new javax.swing.JTextField();
        jPanel26 = new javax.swing.JPanel();
        jLabel27 = new javax.swing.JLabel();
        entrepriseVIPSelection = new javax.swing.JTextField();
        jPanel27 = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        participationVIPSelection = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        secteurActiviteVIPSelection = new javax.swing.JTextField();
        jPanel4 = new javax.swing.JPanel();
        retourVIPSelection = new javax.swing.JButton();
        supprimerVIPSelection = new javax.swing.JButton();
        confirmerVIPSelection = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        VIPAjouter = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabel219 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        ageVIPAjouter = new javax.swing.JTextField();
        jLabel35 = new javax.swing.JLabel();
        jLabel220 = new javax.swing.JLabel();
        jLabel221 = new javax.swing.JLabel();
        jLabel222 = new javax.swing.JLabel();
        prenomVIPAjouter = new javax.swing.JTextField();
        nomVIPAjouter = new javax.swing.JTextField();
        nationaliteVIPAjouter = new javax.swing.JTextField();
        jScrollPane48 = new javax.swing.JScrollPane();
        coefVIPAjouter = new javax.swing.JList();
        compagnonVIPAjouter = new javax.swing.JTextField();
        jLabel224 = new javax.swing.JLabel();
        jLabel225 = new javax.swing.JLabel();
        acteurVIPAjouter = new javax.swing.JRadioButton();
        journalisteVIPAjouter = new javax.swing.JRadioButton();
        realisateurVIPAjouter = new javax.swing.JRadioButton();
        producteurVIPAjouter = new javax.swing.JRadioButton();
        sponsorVIPAjouter = new javax.swing.JRadioButton();
        jPanel28 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        entrepriseVIPAjouter = new javax.swing.JTextField();
        jPanel29 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        participationVIPAjouter = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        secteurActiviteVIPAjouter = new javax.swing.JTextField();
        jPanel30 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        niveauVIPAjouter = new javax.swing.JList();
        jLabel34 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        employeurVIPAjouter = new javax.swing.JTextField();
        jPanel10 = new javax.swing.JPanel();
        retourVIPAjouter = new javax.swing.JButton();
        confirmerVIPAjouter = new javax.swing.JButton();
        ProjectionsAccueil = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jLabel226 = new javax.swing.JLabel();
        jPanel12 = new javax.swing.JPanel();
        accueilPAccueil = new javax.swing.JButton();
        connexionPAccueil = new javax.swing.JButton();
        jPanel24 = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        listerPAccueil = new javax.swing.JButton();
        datePAccueil = new com.toedter.calendar.JDateChooser();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablePAccueil = new javax.swing.JTable();
        ProjectionsAuthentification = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        jLabel227 = new javax.swing.JLabel();
        jPanel14 = new javax.swing.JPanel();
        identifiantPAuthentification = new javax.swing.JTextField();
        motDePassePAuthentification = new javax.swing.JPasswordField();
        jLabel4 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        connexionPAuthentification = new javax.swing.JButton();
        accueilPAuthentification = new javax.swing.JButton();
        retourPAuthentification = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jPanel32 = new javax.swing.JPanel();
        jLabel229 = new javax.swing.JLabel();
        ProjectionsAffichage = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        accueilPAffichage = new javax.swing.JButton();
        ajouterPAffichage = new javax.swing.JButton();
        deconnexionPAffichage = new javax.swing.JButton();
        modifierPAffichage = new javax.swing.JButton();
        jPanel16 = new javax.swing.JPanel();
        jLabel228 = new javax.swing.JLabel();
        jPanel23 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        listerPAffichage = new javax.swing.JButton();
        datePAffichage = new com.toedter.calendar.JDateChooser();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablePAffichage = new javax.swing.JTable();
        ProjectionsModifier = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        filmPModifier = new javax.swing.JComboBox();
        sallePModifier = new javax.swing.JComboBox();
        datePModifier = new com.toedter.calendar.JDateChooser();
        jLabel24 = new javax.swing.JLabel();
        horairePModifier = new javax.swing.JComboBox();
        jPanel18 = new javax.swing.JPanel();
        retourPModifier = new javax.swing.JButton();
        supprimerPModifier = new javax.swing.JButton();
        confirmerPModifier = new javax.swing.JButton();
        jPanel19 = new javax.swing.JPanel();
        jLabel37 = new javax.swing.JLabel();
        ProjectionsAjouter = new javax.swing.JPanel();
        jPanel20 = new javax.swing.JPanel();
        jLabel38 = new javax.swing.JLabel();
        jPanel21 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        filmPAjouter = new javax.swing.JComboBox();
        sallePAjouter = new javax.swing.JComboBox();
        jLabel23 = new javax.swing.JLabel();
        datePAjouter = new com.toedter.calendar.JDateChooser();
        horairePAjouter = new javax.swing.JComboBox();
        jPanel22 = new javax.swing.JPanel();
        retourPAjouter = new javax.swing.JButton();
        confirmerPAjouter = new javax.swing.JButton();

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane5.setViewportView(jTable1);

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Festival de Cannes");
        setBackground(new java.awt.Color(225, 230, 243));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                fermetureFenetre(evt);
            }
        });

        Accueil.setBackground(new java.awt.Color(233, 234, 235));
        Accueil.setPreferredSize(new java.awt.Dimension(600, 600));

        planning.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentation/images/Planning.png"))); // NOI18N
        planning.setBorder(null);
        planning.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                planningActionPerformed(evt);
            }
        });

        quitter.setText("Quitter");
        quitter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quitterActionPerformed(evt);
            }
        });

        banniere.setBackground(new java.awt.Color(0, 0, 0));
        banniere.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentation/images/festival.png"))); // NOI18N

        vip.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentation/images/VIP.png"))); // NOI18N
        vip.setBorder(null);
        vip.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vipActionPerformed(evt);
            }
        });

        jPanel33.setBackground(new java.awt.Color(51, 51, 51));
        jPanel33.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel216.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel216.setForeground(new java.awt.Color(255, 255, 255));
        jLabel216.setText("Gestion des projections");

        javax.swing.GroupLayout jPanel33Layout = new javax.swing.GroupLayout(jPanel33);
        jPanel33.setLayout(jPanel33Layout);
        jPanel33Layout.setHorizontalGroup(
            jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel33Layout.createSequentialGroup()
                .addContainerGap(32, Short.MAX_VALUE)
                .addComponent(jLabel216)
                .addGap(23, 23, 23))
        );
        jPanel33Layout.setVerticalGroup(
            jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel216, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel34.setBackground(new java.awt.Color(51, 51, 51));
        jPanel34.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel215.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel215.setForeground(new java.awt.Color(255, 255, 255));
        jLabel215.setText("Gestion des invités");

        javax.swing.GroupLayout jPanel34Layout = new javax.swing.GroupLayout(jPanel34);
        jPanel34.setLayout(jPanel34Layout);
        jPanel34Layout.setHorizontalGroup(
            jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel34Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel215)
                .addGap(44, 44, 44))
        );
        jPanel34Layout.setVerticalGroup(
            jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel34Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jLabel215))
        );

        javax.swing.GroupLayout AccueilLayout = new javax.swing.GroupLayout(Accueil);
        Accueil.setLayout(AccueilLayout);
        AccueilLayout.setHorizontalGroup(
            AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccueilLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel34, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(vip, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(27, 27, 27)
                .addComponent(quitter)
                .addGap(18, 18, 18)
                .addGroup(AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(planning)
                    .addComponent(jPanel33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(25, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AccueilLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(banniere)
                .addGap(97, 97, 97))
        );
        AccueilLayout.setVerticalGroup(
            AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccueilLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(banniere, javax.swing.GroupLayout.DEFAULT_SIZE, 330, Short.MAX_VALUE)
                .addGap(33, 33, 33)
                .addGroup(AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(AccueilLayout.createSequentialGroup()
                        .addGroup(AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(planning, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(vip, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(1, 1, 1)
                        .addGroup(AccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(quitter))
                .addGap(35, 35, 35))
        );

        VIPAuthentification.setBackground(new java.awt.Color(216, 225, 255));
        VIPAuthentification.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Connexion"));

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel3.setText("Mot de passe :");

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel2.setText("Identifiant :");

        connexionVIPAuthentification.setText("Connexion");
        connexionVIPAuthentification.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connexionVIPAuthentificationActionPerformed(evt);
            }
        });

        accueilVIPAuthentification.setText("Accueil");
        accueilVIPAuthentification.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accueilVIPAuthentificationActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(106, 106, 106)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addComponent(accueilVIPAuthentification)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(connexionVIPAuthentification))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3)
                            .addComponent(jLabel2))
                        .addGap(40, 40, 40)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(identifiantVIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(motDePasseVIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(111, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(motDePasseVIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(identifiantVIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(31, 31, 31)
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(accueilVIPAuthentification)
                    .addComponent(connexionVIPAuthentification))
                .addGap(43, 43, 43))
        );

        jLabel214.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        jLabel214.setText("Vous devez saisir vos identifiants afin de vous authentifier.");

        jPanel7.setBackground(new java.awt.Color(153, 153, 153));
        jPanel7.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel218.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel218.setForeground(new java.awt.Color(255, 255, 255));
        jLabel218.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel218.setText("Authentification");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(157, 157, 157)
                .addComponent(jLabel218)
                .addContainerGap(157, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel218, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentation/images/ble.png"))); // NOI18N

        jPanel31.setBackground(new java.awt.Color(153, 153, 153));
        jPanel31.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel223.setFont(new java.awt.Font("Calibri", 3, 28)); // NOI18N
        jLabel223.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel223.setText("Gestion des VIP");

        javax.swing.GroupLayout jPanel31Layout = new javax.swing.GroupLayout(jPanel31);
        jPanel31.setLayout(jPanel31Layout);
        jPanel31Layout.setHorizontalGroup(
            jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel31Layout.createSequentialGroup()
                .addGap(157, 157, 157)
                .addComponent(jLabel223)
                .addContainerGap(164, Short.MAX_VALUE))
        );
        jPanel31Layout.setVerticalGroup(
            jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel223, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        javax.swing.GroupLayout VIPAuthentificationLayout = new javax.swing.GroupLayout(VIPAuthentification);
        VIPAuthentification.setLayout(VIPAuthentificationLayout);
        VIPAuthentificationLayout.setHorizontalGroup(
            VIPAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPAuthentificationLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(VIPAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPAuthentificationLayout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(50, 50, 50))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPAuthentificationLayout.createSequentialGroup()
                        .addComponent(jLabel22)
                        .addGap(120, 120, 120))))
            .addGroup(VIPAuthentificationLayout.createSequentialGroup()
                .addGroup(VIPAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(VIPAuthentificationLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jPanel31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(VIPAuthentificationLayout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(VIPAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel214))))
                .addGap(14, 14, 14))
        );
        VIPAuthentificationLayout.setVerticalGroup(
            VIPAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPAuthentificationLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 25, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel214)
                .addGap(42, 42, 42)
                .addComponent(jLabel22)
                .addGap(18, 18, 18)
                .addComponent(jPanel31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        VIPAffichage.setBackground(new java.awt.Color(216, 225, 255));
        VIPAffichage.setPreferredSize(new java.awt.Dimension(600, 600));

        tableVIPAffichage.setModel(tableVip);
        tableVIPAffichage.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane6.setViewportView(tableVIPAffichage);

        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel2.setToolTipText("");

        deconnexionVIPAffichage.setText("Deconnexion");
        deconnexionVIPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deconnexionVIPAffichageActionPerformed(evt);
            }
        });

        ajouterVIPAffichage.setText("Ajouter");
        ajouterVIPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ajouterVIPAffichageActionPerformed(evt);
            }
        });

        accueilVIPAffichage.setText("Accueil");
        accueilVIPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accueilVIPAffichageActionPerformed(evt);
            }
        });

        modifierVIPAffichage.setText("Modifier/Supprimer");
        modifierVIPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modifierVIPAffichageActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(accueilVIPAffichage)
                .addGap(18, 18, 18)
                .addComponent(deconnexionVIPAffichage)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(modifierVIPAffichage)
                .addGap(18, 18, 18)
                .addComponent(ajouterVIPAffichage)
                .addGap(30, 30, 30))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(accueilVIPAffichage)
                    .addComponent(ajouterVIPAffichage)
                    .addComponent(deconnexionVIPAffichage)
                    .addComponent(modifierVIPAffichage))
                .addGap(0, 11, Short.MAX_VALUE))
        );

        jPanel6.setBackground(new java.awt.Color(153, 153, 153));
        jPanel6.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel217.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel217.setForeground(new java.awt.Color(255, 255, 255));
        jLabel217.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel217.setText("Liste des VIP");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(182, Short.MAX_VALUE)
                .addComponent(jLabel217)
                .addGap(175, 175, 175))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel217, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        javax.swing.GroupLayout VIPAffichageLayout = new javax.swing.GroupLayout(VIPAffichage);
        VIPAffichage.setLayout(VIPAffichageLayout);
        VIPAffichageLayout.setHorizontalGroup(
            VIPAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPAffichageLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(VIPAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.LEADING))
                .addGap(14, 14, 14))
            .addGroup(VIPAffichageLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50))
        );
        VIPAffichageLayout.setVerticalGroup(
            VIPAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPAffichageLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        VIPSelection.setBackground(new java.awt.Color(216, 225, 255));
        VIPSelection.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Coordonnées"));

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel5.setText("Nom :");

        jLabel14.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel14.setText("Nationalité :");

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel6.setText("Prénom :");

        jLabel12.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel12.setText("Compagnon (facultatif) :");

        coefVIPSelection.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        coefVIPSelection.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane2.setViewportView(coefVIPSelection);

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel11.setText("Coefficient d'attrait :");

        jLabel13.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel13.setText("Age :");

        selection.add(realisateurVIPSelection);
        realisateurVIPSelection.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        realisateurVIPSelection.setText("Realisateur");

        selection.add(acteurVIPSelection);
        acteurVIPSelection.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        acteurVIPSelection.setText("Acteur");

        selection.add(journalisteVIPSelection);
        journalisteVIPSelection.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        journalisteVIPSelection.setText("Journaliste");

        selection.add(producteurVIPSelection);
        producteurVIPSelection.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        producteurVIPSelection.setText("Producteur");

        selection.add(sponsorVIPSelection);
        sponsorVIPSelection.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        sponsorVIPSelection.setText("Sponsor");

        jLabel25.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel25.setText("ans");

        jLabel26.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel26.setText("/10");

        jPanel25.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        niveauVIPSelection.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        niveauVIPSelection.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane1.setViewportView(niveauVIPSelection);

        jLabel15.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel15.setText("Niveau d'accréditation");

        jLabel29.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel29.setText("Employeur");

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel25Layout.createSequentialGroup()
                        .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel25Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabel15))
                            .addGroup(jPanel25Layout.createSequentialGroup()
                                .addGap(39, 39, 39)
                                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel29)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 18, Short.MAX_VALUE))
                    .addGroup(jPanel25Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(employeurVIPSelection)))
                .addContainerGap())
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel15)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addComponent(jLabel29)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(employeurVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12))
        );

        jPanel26.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel27.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel27.setText("Entreprise");

        javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(entrepriseVIPSelection)
                .addContainerGap())
            .addGroup(jPanel26Layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(jLabel27)
                .addContainerGap(51, Short.MAX_VALUE))
        );
        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel27)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(entrepriseVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );

        jPanel27.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel28.setText("Participation financière");

        jLabel30.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel30.setText("Secteur d'activité");

        javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27);
        jPanel27.setLayout(jPanel27Layout);
        jPanel27Layout.setHorizontalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(participationVIPSelection, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(secteurActiviteVIPSelection)
                    .addGroup(jPanel27Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(jLabel28)
                        .addGap(0, 9, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(jLabel30)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel27Layout.setVerticalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel27Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(participationVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(secteurActiviteVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel12)
                            .addComponent(jLabel6)
                            .addComponent(jLabel5)
                            .addComponent(jLabel13)
                            .addComponent(jLabel14))
                        .addGap(14, 14, 14)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(nomVIPSelection)
                            .addComponent(prenomVIPSelection)
                            .addComponent(compagnonVIPSelection)
                            .addComponent(nationaliteVIPSelection)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addComponent(ageVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel25))
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel26)))
                                .addGap(0, 194, Short.MAX_VALUE))))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(acteurVIPSelection)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(journalisteVIPSelection)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(realisateurVIPSelection)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(producteurVIPSelection)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(sponsorVIPSelection)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(acteurVIPSelection)
                    .addComponent(journalisteVIPSelection)
                    .addComponent(realisateurVIPSelection)
                    .addComponent(producteurVIPSelection)
                    .addComponent(sponsorVIPSelection))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(nomVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prenomVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel26))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(compagnonVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ageVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13)
                    .addComponent(jLabel25))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nationaliteVIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14))
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        retourVIPSelection.setText("Retour");
        retourVIPSelection.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retourVIPSelectionActionPerformed(evt);
            }
        });

        supprimerVIPSelection.setText("Supprimer");
        supprimerVIPSelection.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                supprimerVIPSelectionActionPerformed(evt);
            }
        });

        confirmerVIPSelection.setText("Confirmer");
        confirmerVIPSelection.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmerVIPSelectionActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(retourVIPSelection)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(supprimerVIPSelection)
                .addGap(18, 18, 18)
                .addComponent(confirmerVIPSelection)
                .addGap(30, 30, 30))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(retourVIPSelection)
                    .addComponent(supprimerVIPSelection)
                    .addComponent(confirmerVIPSelection))
                .addContainerGap())
        );

        jPanel5.setBackground(new java.awt.Color(153, 153, 153));
        jPanel5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel36.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel36.setForeground(new java.awt.Color(255, 255, 255));
        jLabel36.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel36.setText("Modifier un VIP");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addContainerGap(165, Short.MAX_VALUE)
                .addComponent(jLabel36)
                .addGap(156, 156, 156))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel36, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        javax.swing.GroupLayout VIPSelectionLayout = new javax.swing.GroupLayout(VIPSelection);
        VIPSelection.setLayout(VIPSelectionLayout);
        VIPSelectionLayout.setHorizontalGroup(
            VIPSelectionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPSelectionLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(VIPSelectionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(14, 14, 14))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPSelectionLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        VIPSelectionLayout.setVerticalGroup(
            VIPSelectionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPSelectionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        VIPAjouter.setBackground(new java.awt.Color(216, 225, 255));
        VIPAjouter.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel8.setBackground(new java.awt.Color(153, 153, 153));
        jPanel8.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel219.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel219.setForeground(new java.awt.Color(255, 255, 255));
        jLabel219.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel219.setText("Ajouter un VIP");

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(162, 162, 162)
                .addComponent(jLabel219)
                .addContainerGap(161, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel219, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Coordonnées"));

        jLabel35.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel35.setText("Nom :");

        jLabel220.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel220.setText("Nationalité :");

        jLabel221.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel221.setText("Prénom :");

        jLabel222.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel222.setText("Compagnon (facultatif) :");

        coefVIPAjouter.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        coefVIPAjouter.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane48.setViewportView(coefVIPAjouter);

        jLabel224.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel224.setText("Coefficient d'attrait :");

        jLabel225.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel225.setText("Age :");

        ajouter.add(acteurVIPAjouter);
        acteurVIPAjouter.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        acteurVIPAjouter.setText("Acteur");
        acteurVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                acteurVIPAjouterActionPerformed(evt);
            }
        });

        ajouter.add(journalisteVIPAjouter);
        journalisteVIPAjouter.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        journalisteVIPAjouter.setText("Journaliste");
        journalisteVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                journalisteVIPAjouterActionPerformed(evt);
            }
        });

        ajouter.add(realisateurVIPAjouter);
        realisateurVIPAjouter.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        realisateurVIPAjouter.setText("Realisateur");
        realisateurVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                realisateurVIPAjouterActionPerformed(evt);
            }
        });

        ajouter.add(producteurVIPAjouter);
        producteurVIPAjouter.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        producteurVIPAjouter.setText("Producteur");
        producteurVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                producteurVIPAjouterActionPerformed(evt);
            }
        });

        ajouter.add(sponsorVIPAjouter);
        sponsorVIPAjouter.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        sponsorVIPAjouter.setText("Sponsor");
        sponsorVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sponsorVIPAjouterActionPerformed(evt);
            }
        });

        jPanel28.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel31.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel31.setText("Entreprise");

        javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(entrepriseVIPAjouter)
                .addContainerGap())
            .addGroup(jPanel28Layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(jLabel31)
                .addContainerGap(51, Short.MAX_VALUE))
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(entrepriseVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );

        jPanel29.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel32.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel32.setText("Participation financière");

        jLabel33.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel33.setText("Secteur d'activité");

        javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(participationVIPAjouter, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(secteurActiviteVIPAjouter)
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(jLabel32)
                        .addGap(0, 9, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(jLabel33)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel32)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(participationVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel33)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(secteurActiviteVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        jPanel30.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        niveauVIPAjouter.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        niveauVIPAjouter.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane7.setViewportView(niveauVIPAjouter);

        jLabel34.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel34.setText("Niveau d'accréditation");

        jLabel39.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel39.setText("Employeur");

        javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30);
        jPanel30.setLayout(jPanel30Layout);
        jPanel30Layout.setHorizontalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel30Layout.createSequentialGroup()
                .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel30Layout.createSequentialGroup()
                        .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel30Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabel34))
                            .addGroup(jPanel30Layout.createSequentialGroup()
                                .addGap(39, 39, 39)
                                .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel39)
                                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 18, Short.MAX_VALUE))
                    .addGroup(jPanel30Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(employeurVIPAjouter)))
                .addContainerGap())
        );
        jPanel30Layout.setVerticalGroup(
            jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel39)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(employeurVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12))
        );

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addComponent(jPanel30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(acteurVIPAjouter)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(journalisteVIPAjouter)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(realisateurVIPAjouter)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(producteurVIPAjouter)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(sponsorVIPAjouter))
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel224)
                            .addComponent(jLabel222)
                            .addComponent(jLabel221)
                            .addComponent(jLabel35)
                            .addComponent(jLabel225)
                            .addComponent(jLabel220))
                        .addGap(14, 14, 14)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(nomVIPAjouter)
                            .addComponent(prenomVIPAjouter)
                            .addComponent(compagnonVIPAjouter)
                            .addComponent(ageVIPAjouter)
                            .addComponent(nationaliteVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane48, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(acteurVIPAjouter)
                    .addComponent(journalisteVIPAjouter)
                    .addComponent(realisateurVIPAjouter)
                    .addComponent(producteurVIPAjouter)
                    .addComponent(sponsorVIPAjouter))
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel35)
                    .addComponent(nomVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prenomVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel221))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel224, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane48, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(compagnonVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel222))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ageVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel225))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nationaliteVIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel220))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        retourVIPAjouter.setText("Retour");
        retourVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retourVIPAjouterActionPerformed(evt);
            }
        });

        confirmerVIPAjouter.setText("Confirmer");
        confirmerVIPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmerVIPAjouterActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(retourVIPAjouter)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 367, Short.MAX_VALUE)
                .addComponent(confirmerVIPAjouter)
                .addGap(30, 30, 30))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(retourVIPAjouter)
                    .addComponent(confirmerVIPAjouter))
                .addContainerGap())
        );

        javax.swing.GroupLayout VIPAjouterLayout = new javax.swing.GroupLayout(VIPAjouter);
        VIPAjouter.setLayout(VIPAjouterLayout);
        VIPAjouterLayout.setHorizontalGroup(
            VIPAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPAjouterLayout.createSequentialGroup()
                .addGroup(VIPAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(VIPAjouterLayout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(VIPAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(VIPAjouterLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(13, Short.MAX_VALUE))
        );
        VIPAjouterLayout.setVerticalGroup(
            VIPAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPAjouterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        ProjectionsAccueil.setBackground(new java.awt.Color(216, 225, 255));
        ProjectionsAccueil.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel11.setBackground(new java.awt.Color(153, 153, 153));
        jPanel11.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel226.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel226.setForeground(new java.awt.Color(255, 255, 255));
        jLabel226.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel226.setText("Table des Projections");

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(131, Short.MAX_VALUE)
                .addComponent(jLabel226)
                .addGap(125, 125, 125))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel226, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        accueilPAccueil.setText("Accueil");
        accueilPAccueil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accueilPAccueilActionPerformed(evt);
            }
        });

        connexionPAccueil.setText("Connexion");
        connexionPAccueil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connexionPAccueilActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(accueilPAccueil)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(connexionPAccueil)
                .addGap(30, 30, 30))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(accueilPAccueil)
                    .addComponent(connexionPAccueil))
                .addContainerGap())
        );

        jPanel24.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel16.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel16.setText("Choisissez une date :");

        listerPAccueil.setText("Lister");
        listerPAccueil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listerPAccueilActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap(94, Short.MAX_VALUE)
                .addComponent(jLabel16)
                .addGap(39, 39, 39)
                .addComponent(datePAccueil, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(126, 126, 126))
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addGap(251, 251, 251)
                .addComponent(listerPAccueil)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()
                .addContainerGap(17, Short.MAX_VALUE)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(datePAccueil, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(16, 16, 16)
                .addComponent(listerPAccueil)
                .addContainerGap())
        );

        tablePAccueil.setModel(tableProj);
        jScrollPane4.setViewportView(tablePAccueil);

        javax.swing.GroupLayout ProjectionsAccueilLayout = new javax.swing.GroupLayout(ProjectionsAccueil);
        ProjectionsAccueil.setLayout(ProjectionsAccueilLayout);
        ProjectionsAccueilLayout.setHorizontalGroup(
            ProjectionsAccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAccueilLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(ProjectionsAccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4)
                    .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(14, 14, 14))
            .addGroup(ProjectionsAccueilLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        ProjectionsAccueilLayout.setVerticalGroup(
            ProjectionsAccueilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAccueilLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        ProjectionsAuthentification.setBackground(new java.awt.Color(216, 225, 255));
        ProjectionsAuthentification.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel13.setBackground(new java.awt.Color(153, 153, 153));
        jPanel13.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel227.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel227.setForeground(new java.awt.Color(255, 255, 255));
        jLabel227.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel227.setText("Authentification");

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap(166, Short.MAX_VALUE)
                .addComponent(jLabel227)
                .addGap(140, 140, 140))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel227, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Connexion"));

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel4.setText("Mot de passe :");

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel7.setText("Identifiant :");

        connexionPAuthentification.setText("Connexion");
        connexionPAuthentification.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connexionPAuthentificationActionPerformed(evt);
            }
        });

        accueilPAuthentification.setText("Accueil");
        accueilPAuthentification.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accueilPAuthentificationActionPerformed(evt);
            }
        });

        retourPAuthentification.setText("Retour");
        retourPAuthentification.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retourPAuthentificationActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(106, 106, 106)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(accueilPAuthentification)
                        .addGap(18, 18, 18)
                        .addComponent(retourPAuthentification)
                        .addGap(118, 118, 118)
                        .addComponent(connexionPAuthentification))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(jLabel7))
                        .addGap(40, 40, 40)
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(identifiantPAuthentification, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                            .addComponent(motDePassePAuthentification))))
                .addGap(106, 106, 106))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(motDePassePAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(identifiantPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(31, 31, 31)
                        .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(accueilPAuthentification)
                    .addComponent(connexionPAuthentification)
                    .addComponent(retourPAuthentification))
                .addGap(43, 43, 43))
        );

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        jLabel1.setText("Vous devez saisir vos identifiants afin de vous authentifier.");

        jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentation/images/ble.png"))); // NOI18N

        jPanel32.setBackground(new java.awt.Color(153, 153, 153));
        jPanel32.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel229.setFont(new java.awt.Font("Calibri", 3, 28)); // NOI18N
        jLabel229.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel229.setText("Gestion des Projections");

        javax.swing.GroupLayout jPanel32Layout = new javax.swing.GroupLayout(jPanel32);
        jPanel32.setLayout(jPanel32Layout);
        jPanel32Layout.setHorizontalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel32Layout.createSequentialGroup()
                .addContainerGap(116, Short.MAX_VALUE)
                .addComponent(jLabel229)
                .addGap(114, 114, 114))
        );
        jPanel32Layout.setVerticalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel229, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        javax.swing.GroupLayout ProjectionsAuthentificationLayout = new javax.swing.GroupLayout(ProjectionsAuthentification);
        ProjectionsAuthentification.setLayout(ProjectionsAuthentificationLayout);
        ProjectionsAuthentificationLayout.setHorizontalGroup(
            ProjectionsAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAuthentificationLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(ProjectionsAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ProjectionsAuthentificationLayout.createSequentialGroup()
                        .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(14, 14, 14))
                    .addGroup(ProjectionsAuthentificationLayout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(ProjectionsAuthentificationLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProjectionsAuthentificationLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(ProjectionsAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProjectionsAuthentificationLayout.createSequentialGroup()
                        .addComponent(jLabel21)
                        .addGap(120, 120, 120))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProjectionsAuthentificationLayout.createSequentialGroup()
                        .addComponent(jPanel32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(50, 50, 50))))
        );
        ProjectionsAuthentificationLayout.setVerticalGroup(
            ProjectionsAuthentificationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAuthentificationLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(25, 25, 25)
                .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addComponent(jLabel21)
                .addGap(18, 18, 18)
                .addComponent(jPanel32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        ProjectionsAffichage.setBackground(new java.awt.Color(216, 225, 255));
        ProjectionsAffichage.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        accueilPAffichage.setText("Accueil");
        accueilPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accueilPAffichageActionPerformed(evt);
            }
        });

        ajouterPAffichage.setText("Ajouter");
        ajouterPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ajouterPAffichageActionPerformed(evt);
            }
        });

        deconnexionPAffichage.setText("Deconnexion");
        deconnexionPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deconnexionPAffichageActionPerformed(evt);
            }
        });

        modifierPAffichage.setText("Modifier/Supprimer");
        modifierPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modifierPAffichageActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(accueilPAffichage)
                .addGap(18, 18, 18)
                .addComponent(deconnexionPAffichage)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 119, Short.MAX_VALUE)
                .addComponent(modifierPAffichage)
                .addGap(18, 18, 18)
                .addComponent(ajouterPAffichage)
                .addGap(30, 30, 30))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(accueilPAffichage)
                    .addComponent(ajouterPAffichage)
                    .addComponent(deconnexionPAffichage)
                    .addComponent(modifierPAffichage))
                .addContainerGap())
        );

        jPanel16.setBackground(new java.awt.Color(153, 153, 153));
        jPanel16.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel228.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel228.setForeground(new java.awt.Color(255, 255, 255));
        jLabel228.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel228.setText("Table des Projections");

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                .addContainerGap(133, Short.MAX_VALUE)
                .addComponent(jLabel228)
                .addGap(128, 128, 128))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel228, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel23.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel10.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel10.setText("Choisissez une date :");

        listerPAffichage.setText("Lister");
        listerPAffichage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listerPAffichageActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(109, 109, 109)
                .addComponent(jLabel10)
                .addGap(32, 32, 32)
                .addComponent(datePAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(listerPAffichage)
                .addGap(249, 249, 249))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel10)
                    .addComponent(datePAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(listerPAffichage)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        tablePAffichage.setModel(tableProj);
        jScrollPane3.setViewportView(tablePAffichage);

        javax.swing.GroupLayout ProjectionsAffichageLayout = new javax.swing.GroupLayout(ProjectionsAffichage);
        ProjectionsAffichage.setLayout(ProjectionsAffichageLayout);
        ProjectionsAffichageLayout.setHorizontalGroup(
            ProjectionsAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProjectionsAffichageLayout.createSequentialGroup()
                .addGroup(ProjectionsAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(ProjectionsAffichageLayout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ProjectionsAffichageLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ProjectionsAffichageLayout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(ProjectionsAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3)
                            .addGroup(ProjectionsAffichageLayout.createSequentialGroup()
                                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 3, Short.MAX_VALUE)))))
                .addGap(14, 14, 14))
        );
        ProjectionsAffichageLayout.setVerticalGroup(
            ProjectionsAffichageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAffichageLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        ProjectionsModifier.setBackground(new java.awt.Color(216, 225, 255));
        ProjectionsModifier.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Coordonnées"));

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel8.setText("Film :");

        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel17.setText("Salle :");

        jLabel19.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel19.setText("Créneau horaire :");

        filmPModifier.setModel(modeleFilm);

        sallePModifier.setModel(modeleSalle);

        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel24.setText("Date :");

        horairePModifier.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "8H-10H", "10H-12H", "14H-16H", "16H-18H" }));

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                .addContainerGap(103, Short.MAX_VALUE)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(jLabel19)
                        .addGap(18, 18, 18)
                        .addComponent(horairePModifier, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jLabel17)
                            .addComponent(jLabel24))
                        .addGap(26, 26, 26)
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(filmPModifier, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(sallePModifier, javax.swing.GroupLayout.PREFERRED_SIZE, 301, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel17Layout.createSequentialGroup()
                                .addComponent(datePModifier, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(116, 116, 116)))))
                .addGap(84, 84, 84))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(92, 92, 92)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(filmPModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addGap(33, 33, 33)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sallePModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17))
                .addGap(35, 35, 35)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(datePModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24))
                .addGap(38, 38, 38)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(horairePModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(125, Short.MAX_VALUE))
        );

        jPanel18.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        retourPModifier.setText("Retour");
        retourPModifier.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retourPModifierActionPerformed(evt);
            }
        });

        supprimerPModifier.setText("Supprimer");
        supprimerPModifier.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                supprimerPModifierActionPerformed(evt);
            }
        });

        confirmerPModifier.setText("Confirmer");
        confirmerPModifier.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmerPModifierActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(retourPModifier)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(supprimerPModifier)
                .addGap(18, 18, 18)
                .addComponent(confirmerPModifier)
                .addGap(30, 30, 30))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(retourPModifier)
                    .addComponent(supprimerPModifier)
                    .addComponent(confirmerPModifier))
                .addContainerGap())
        );

        jPanel19.setBackground(new java.awt.Color(153, 153, 153));
        jPanel19.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel37.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel37.setForeground(new java.awt.Color(255, 255, 255));
        jLabel37.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel37.setText("Modifier une Projection");

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                .addContainerGap(121, Short.MAX_VALUE)
                .addComponent(jLabel37)
                .addGap(98, 98, 98))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel37, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        javax.swing.GroupLayout ProjectionsModifierLayout = new javax.swing.GroupLayout(ProjectionsModifier);
        ProjectionsModifier.setLayout(ProjectionsModifierLayout);
        ProjectionsModifierLayout.setHorizontalGroup(
            ProjectionsModifierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsModifierLayout.createSequentialGroup()
                .addGroup(ProjectionsModifierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ProjectionsModifierLayout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(ProjectionsModifierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(ProjectionsModifierLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        ProjectionsModifierLayout.setVerticalGroup(
            ProjectionsModifierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsModifierLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        ProjectionsAjouter.setBackground(new java.awt.Color(216, 225, 255));
        ProjectionsAjouter.setPreferredSize(new java.awt.Dimension(600, 600));

        jPanel20.setBackground(new java.awt.Color(153, 153, 153));
        jPanel20.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jLabel38.setFont(new java.awt.Font("Calibri", 1, 28)); // NOI18N
        jLabel38.setForeground(new java.awt.Color(255, 255, 255));
        jLabel38.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel38.setText("Ajouter une Projection");

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
                .addContainerGap(131, Short.MAX_VALUE)
                .addComponent(jLabel38)
                .addGap(103, 103, 103))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel38, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Coordonnées"));

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel9.setText("Film :");

        jLabel20.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel20.setText("Créneau horaire :");

        jLabel18.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel18.setText("Salle :");

        filmPAjouter.setModel(modeleFilm);

        sallePAjouter.setModel(modeleSalle);

        jLabel23.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel23.setText("Date :");

        horairePAjouter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "8H-10H", "10H-12H", "14H-16H", "16H-18H" }));

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap(96, Short.MAX_VALUE)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()
                            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel21Layout.createSequentialGroup()
                                    .addComponent(jLabel23)
                                    .addGap(128, 128, 128))
                                .addGroup(jPanel21Layout.createSequentialGroup()
                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel9)
                                        .addComponent(jLabel18))
                                    .addGap(26, 26, 26)
                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(filmPAjouter, 0, 301, Short.MAX_VALUE)
                                        .addComponent(sallePAjouter, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                            .addGap(91, 91, 91))
                        .addGroup(jPanel21Layout.createSequentialGroup()
                            .addComponent(jLabel20)
                            .addGap(18, 18, 18)
                            .addComponent(horairePAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()
                        .addComponent(datePAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(213, 213, 213))))
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addGap(54, 54, 54)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(filmPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9))
                .addGap(44, 44, 44)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(sallePAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(44, 44, 44)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel23)
                    .addComponent(datePAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(horairePAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(121, 121, 121))
        );

        jPanel22.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        retourPAjouter.setText("Retour");
        retourPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retourPAjouterActionPerformed(evt);
            }
        });

        confirmerPAjouter.setText("Confirmer");
        confirmerPAjouter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmerPAjouterActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(retourPAjouter)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(confirmerPAjouter)
                .addGap(30, 30, 30))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(retourPAjouter)
                    .addComponent(confirmerPAjouter))
                .addContainerGap())
        );

        javax.swing.GroupLayout ProjectionsAjouterLayout = new javax.swing.GroupLayout(ProjectionsAjouter);
        ProjectionsAjouter.setLayout(ProjectionsAjouterLayout);
        ProjectionsAjouterLayout.setHorizontalGroup(
            ProjectionsAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ProjectionsAjouterLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(ProjectionsAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(14, 14, 14))
            .addGroup(ProjectionsAjouterLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50))
        );
        ProjectionsAjouterLayout.setVerticalGroup(
            ProjectionsAjouterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProjectionsAjouterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(29, 29, 29)
                .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Accueil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(VIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(VIPAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(VIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(ProjectionsAccueil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(ProjectionsAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(ProjectionsAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(ProjectionsModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(ProjectionsAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(VIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(Accueil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(VIPAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProjectionsAccueil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProjectionsAuthentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProjectionsAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProjectionsModifier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProjectionsAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(VIPAffichage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(VIPSelection, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(VIPAjouter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // VIP //
// Accueil -----
    private void quitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_quitterActionPerformed
        int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir quitter ?", "Confirmer", JOptionPane.YES_NO_OPTION);
        if (rep == JOptionPane.YES_OPTION) {
            HibernateUtil.getSessionFactory().close();
            this.dispose();
        }
    }//GEN-LAST:event_quitterActionPerformed

    private void planningActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_planningActionPerformed
        if (boolProj) {
            try {
                datePAffichage.setDate(df.parse(df.format(new Date())));
            } catch (Exception e){
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
            setVisibleFalse();
            ProjectionsAffichage.setVisible(true);
        }
        else {
            try {
                datePAccueil.setDate(df.parse(df.format(new Date())));
            } catch (Exception e){
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
            setVisibleFalse();
            ProjectionsAccueil.setVisible(true);
        } 
    }//GEN-LAST:event_planningActionPerformed

    private void vipActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vipActionPerformed
        if (boolVIP){
            setVisibleFalse();
            VIPAffichage.setVisible(true);
        }
        else {
            setVisibleFalse();
            VIPAuthentification.setVisible(true);
        }
        
        identifiantVIPAuthentification.setText("admin");
        motDePasseVIPAuthentification.setText("admin");
    }//GEN-LAST:event_vipActionPerformed

// VIP Authentification -----
    private void connexionVIPAuthentificationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connexionVIPAuthentificationActionPerformed
        if (identifiantVIPAuthentification.getText().isEmpty() && motDePasseVIPAuthentification.getPassword().length == 0) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un identifiant et un mot de passe pour vous connecter !");
        } else if (identifiantVIPAuthentification.getText().isEmpty()) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un identifiant pour vous connecter !");
        } else if (motDePasseVIPAuthentification.getPassword().length == 0) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un mot de passe pour vous connecter !");
        } else {
            // Récupération du mot de passe
            String pass = new String(motDePasseVIPAuthentification.getPassword());
            // Vérification mot de passe
            if (identifiantVIPAuthentification.getText().equals("admin") && pass.equals("admin")) {
                setVisibleFalse();
                VIPAffichage.setVisible(true);
                boolVIP = true;
            } else {
                JOptionPane.showMessageDialog(this, "Combinaison identifiant / mot de passe incorrect !");
            }
        }
    }//GEN-LAST:event_connexionVIPAuthentificationActionPerformed

    private void accueilVIPAuthentificationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accueilVIPAuthentificationActionPerformed
        setVisibleFalse();
        Accueil.setVisible(true);
    }//GEN-LAST:event_accueilVIPAuthentificationActionPerformed

// VIP Affichage -----
    private void accueilVIPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accueilVIPAffichageActionPerformed
        setVisibleFalse();
        Accueil.setVisible(true);
    }//GEN-LAST:event_accueilVIPAffichageActionPerformed

    private void deconnexionVIPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deconnexionVIPAffichageActionPerformed
        int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir vous deconnecter ?", "Confirmer", JOptionPane.YES_NO_OPTION);
        if (rep == JOptionPane.YES_OPTION) {
            setVisibleFalse();
            VIPAuthentification.setVisible(true);
            boolVIP = false;
        }
    }//GEN-LAST:event_deconnexionVIPAffichageActionPerformed

    private void ajouterVIPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ajouterVIPAffichageActionPerformed
        niveauVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(false);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(false);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(false);
        secteurActiviteVIPAjouter.setText("");
        setVisibleFalse();
        VIPAjouter.setVisible(true);
    }//GEN-LAST:event_ajouterVIPAffichageActionPerformed

	private void modifierVIPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modifierVIPAffichageActionPerformed
            if (tableVIPAffichage.getSelectedRowCount() == 0) {
                JOptionPane.showMessageDialog(this, "Veuillez sélectionner la ligne à modifier.");
            } else {
                int selec = tableVIPAffichage.getSelectedRow();
                try {
                    employeurVIPSelection.setEnabled(false);
                    niveauVIPSelection.setEnabled(false);
                    entrepriseVIPSelection.setEnabled(false);
                    participationVIPSelection.setEnabled(false);
                    secteurActiviteVIPSelection.setEnabled(false);
                    vipSelec = vipDao.trouverVip((String) tableVIPAffichage.getValueAt(selec, 0));
                    String type = vipDao.trouverTypeVip(vipSelec);
                    switch (type) {
                        // Sélection du boutton désiré
                        case "acteur":
                            acteurVIPSelection.setSelected(true);
                            break;
                        case "journaliste":
                            Journaliste j = vipDao.trouverJournaliste(vipSelec.getId());
                            journalisteVIPSelection.setSelected(true);
                            employeurVIPSelection.setEnabled(true);
                            employeurVIPSelection.setText(j.getEmployeur());
                            niveauVIPSelection.setEnabled(true);
                            niveauVIPSelection.setSelectedIndex(Integer.valueOf(j.getNiveauaccreditation()) - 1);
                            niveauVIPSelection.ensureIndexIsVisible(Integer.valueOf(j.getNiveauaccreditation()) - 1);
                            break;
                        case "producteur":
                            Producteur p = vipDao.trouverProducteur(vipSelec.getId());
                            producteurVIPSelection.setSelected(true);
                            entrepriseVIPSelection.setEnabled(true);
                            entrepriseVIPSelection.setText(p.getEntreprise());
                            break;
                        case "realisateur":
                            realisateurVIPSelection.setSelected(true);
                            break;
                        case "sponsor":
                            Sponsor s = vipDao.trouverSponsor(vipSelec.getId());
                            sponsorVIPSelection.setSelected(true);
                            participationVIPSelection.setEnabled(true);
                            participationVIPSelection.setText(String.valueOf(s.getContributionfinanciere()));
                            secteurActiviteVIPSelection.setEnabled(true);
                            secteurActiviteVIPSelection.setText(s.getDomaineactivite());
                            break;
                        default:
                            acteurVIPSelection.setSelected(false);
                            journalisteVIPSelection.setSelected(false);
                            producteurVIPSelection.setSelected(false);
                            realisateurVIPSelection.setSelected(false);
                            sponsorVIPSelection.setSelected(false);
                            break;
                    }
                    nomVIPSelection.setText(vipSelec.getNom());
                    prenomVIPSelection.setText(vipSelec.getPrenom());
                    coefVIPSelection.setSelectedIndex(Integer.valueOf(vipSelec.getCoeffattrait()) - 1);
                    coefVIPSelection.ensureIndexIsVisible(Integer.valueOf(vipSelec.getCoeffattrait()) - 1);
                    ageVIPSelection.setText(vipSelec.getAge().toString());
                    nationaliteVIPSelection.setText(vipSelec.getNationalite());
                    compagnonVIPSelection.setText(vipSelec.getCompagnon());
                    acteurVIPSelection.setEnabled(false);
                    journalisteVIPSelection.setEnabled(false);
                    producteurVIPSelection.setEnabled(false);
                    realisateurVIPSelection.setEnabled(false);
                    sponsorVIPSelection.setEnabled(false);
                    setVisibleFalse();
                    VIPSelection.setVisible(true);
                } catch (Exception ex) {
                    JOptionPane.showMessageDialog(this, ex.getMessage());
                }
            }
    }//GEN-LAST:event_modifierVIPAffichageActionPerformed

// VIP Ajouter -----
    private void retourVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retourVIPAjouterActionPerformed
        setVisibleFalse();
        VIPAffichage.setVisible(true);
    }//GEN-LAST:event_retourVIPAjouterActionPerformed

    private void confirmerVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmerVIPAjouterActionPerformed
        if (ajouter.getSelection() == null || nomVIPAjouter.getText().isEmpty() || prenomVIPAjouter.getText().isEmpty()
                || ageVIPAjouter.getText().isEmpty() || nationaliteVIPAjouter.getText().isEmpty()
                || coefVIPAjouter.getSelectedValue() == null
                || (niveauVIPAjouter.getSelectedValue() == null && journalisteVIPAjouter.isSelected())) {
            JOptionPane.showMessageDialog(this, "Certains champs sont vides !\nVous devez remplir tous les champs obligatoires pour confirmer.");
        } else {
            int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Confirmer", JOptionPane.YES_NO_OPTION);
            if (rep == JOptionPane.YES_OPTION) {
                //Ajout du vip
                vipSelec = new Vip();
                vipSelec.setNom(nomVIPAjouter.getText());
                vipSelec.setPrenom(prenomVIPAjouter.getText());
                vipSelec.setCoeffattrait((String) coefVIPAjouter.getSelectedValue());
                vipSelec.setAge(ageVIPAjouter.getText());
                vipSelec.setNationalite(nationaliteVIPAjouter.getText());
                if (!compagnonVIPAjouter.getText().isEmpty()) {
                    vipSelec.setCompagnon(compagnonVIPAjouter.getText());
                }

                try {
                    if (journalisteVIPAjouter.isSelected()) {
                        Journaliste j = new Journaliste(vipSelec.getId(), vipSelec);
                        j.setNiveauaccreditation((String) niveauVIPAjouter.getSelectedValue());
                        vipDao.ajouterVip(vipSelec);
                        vipDao.ajouterJournaliste(j);
                    } else if (acteurVIPAjouter.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Acteur a = new Acteur(p.getId(), p);
                        vipDao.ajouterVip(vipSelec);
                        vipDao.ajouterParticipant(p);
                        vipDao.ajouterActeur(a);
                    } else if (realisateurVIPAjouter.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Realisateur r = new Realisateur(p.getId(), p);
                        vipDao.ajouterVip(vipSelec);
                        vipDao.ajouterParticipant(p);
                        vipDao.ajouterRealisateur(r);
                    } else if (producteurVIPAjouter.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Producteur pr = new Producteur(p.getId(), p);
                        pr.setEntreprise(entrepriseVIPAjouter.getText());
                        vipDao.ajouterVip(vipSelec);
                        vipDao.ajouterParticipant(p);
                        vipDao.ajouterProducteur(pr);
                    } else if (sponsorVIPAjouter.isSelected()) {
                        Sponsor s = new Sponsor(vipSelec.getId(), vipSelec);
                        s.setContributionfinanciere(BigDecimal.valueOf(Long.parseLong(participationVIPAjouter.getText())));
                        s.setDomaineactivite(secteurActiviteVIPAjouter.getText());
                        vipDao.ajouterVip(vipSelec);
                        vipDao.ajouterSponsor(s);
                    }
                } catch (Exception e) {
                    JOptionPane.showMessageDialog(this, e.getMessage());
                }

                //OK
                //Reset des JTextField
                ajouter.clearSelection();
                nomVIPAjouter.setText("");
                prenomVIPAjouter.setText("");
                ageVIPAjouter.setText("");
                compagnonVIPSelection.setText("");
                nationaliteVIPAjouter.setText("");
                coefVIPAjouter.clearSelection();
                niveauVIPAjouter.clearSelection();
                acteurVIPAjouter.setSelected(false);
                realisateurVIPAjouter.setSelected(false);
                producteurVIPAjouter.setSelected(false);
                sponsorVIPAjouter.setSelected(false);
                journalisteVIPAjouter.setSelected(false);
                setVisibleFalse();
                VIPAffichage.setVisible(true);
            }
        }
    }//GEN-LAST:event_confirmerVIPAjouterActionPerformed

// VIP Selection (ou modifier) -----
    private void confirmerVIPSelectionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmerVIPSelectionActionPerformed
        if (selection.getSelection() == null || nomVIPSelection.getText().isEmpty() || prenomVIPSelection.getText().isEmpty()
                || ageVIPSelection.getText().isEmpty() || nationaliteVIPSelection.getText().isEmpty()
                || coefVIPSelection.getSelectedValue() == null) {
            JOptionPane.showMessageDialog(this, "Certains champs sont vides !\nVous devez remplir tous les champs obligatoires pour confirmer.");
        } else {
            int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Confirmer", JOptionPane.YES_NO_OPTION);
            if (rep == JOptionPane.YES_OPTION) {
                // Modification du VIP
                int selec = tableVIPAffichage.getSelectedRow();
                try {
                    vipSelec = vipDao.trouverVip((String) tableVIPAffichage.getValueAt(selec, 0));
                    vipSelec.setNom(nomVIPSelection.getText());
                    vipSelec.setPrenom(prenomVIPSelection.getText());
                    vipSelec.setCoeffattrait((String) coefVIPSelection.getSelectedValue());
                    vipSelec.setAge(ageVIPSelection.getText());
                    vipSelec.setNationalite(nationaliteVIPSelection.getText());
                    if (!compagnonVIPSelection.getText().isEmpty()) {
                        vipSelec.setCompagnon(compagnonVIPSelection.getText());
                    }

                    if (journalisteVIPSelection.isSelected()) {
                        Journaliste j = new Journaliste(vipSelec.getId(), vipSelec);
                        j.setNiveauaccreditation((String) niveauVIPSelection.getSelectedValue());
                        vipDao.modifierJournaliste(j);
                        vipDao.modifierVip(vipSelec);
                    } else if (acteurVIPSelection.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Acteur a = new Acteur(p.getId(), p);
                        vipDao.modifierActeur(a);
                        vipDao.modifierParticipant(p);
                        vipDao.modifierVip(vipSelec);
                    } else if (realisateurVIPSelection.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Realisateur r = new Realisateur(p.getId(), p);
                        vipDao.modifierRealisateur(r);
                        vipDao.modifierParticipant(p);
                        vipDao.modifierVip(vipSelec);
                    } else if (producteurVIPSelection.isSelected()) {
                        Participant p = new Participant(vipSelec.getId(), vipSelec);
                        Producteur pr = new Producteur(p.getId(), p);
                        vipDao.modifierProducteur(pr);
                        vipDao.modifierParticipant(p);
                        vipDao.modifierVip(vipSelec);
                    } else if (sponsorVIPSelection.isSelected()) {
                        Sponsor s = new Sponsor(vipSelec.getId(), vipSelec);
                        vipDao.modifierSponsor(s);
                        vipDao.modifierVip(vipSelec);
                    }
                } catch (Exception e) {
                    JOptionPane.showMessageDialog(this, e.getMessage());
                }

                //Reset des JTextField
                ajouter.clearSelection();
                nomVIPSelection.setText("");
                prenomVIPSelection.setText("");
                ageVIPSelection.setText("");
                compagnonVIPSelection.setText("");
                nationaliteVIPSelection.setText("");
                coefVIPSelection.clearSelection();
                niveauVIPSelection.clearSelection();
                acteurVIPSelection.setSelected(false);
                realisateurVIPSelection.setSelected(false);
                producteurVIPSelection.setSelected(false);
                sponsorVIPSelection.setSelected(false);
                journalisteVIPSelection.setSelected(false);
                setVisibleFalse();
                VIPAffichage.setVisible(true);
            }
        }
    }//GEN-LAST:event_confirmerVIPSelectionActionPerformed

    private void supprimerVIPSelectionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_supprimerVIPSelectionActionPerformed
        int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Supprimer", JOptionPane.YES_NO_OPTION);
        if (rep == JOptionPane.YES_OPTION) {
            //Suppression du vip de la base
            int selec = tableVIPAffichage.getSelectedRow();
            try {
                vipSelec = vipDao.trouverVip((String) tableVIPAffichage.getValueAt(selec, 0));
                String type = vipDao.trouverTypeVip(vipSelec);
                switch (type) {
                    case "acteur":
                        Participant p1 = vipDao.trouverParticipant(vipSelec.getId());
                        Acteur a = vipDao.trouverActeur(vipSelec.getId());
                        vipDao.supprimerActeur(a);
                        vipDao.supprimerParticipant(p1);
                        vipDao.supprimerVip(vipSelec);
                        break;
                    case "journaliste":
                        Journaliste j = vipDao.trouverJournaliste(vipSelec.getId());
                        vipDao.supprimerJournaliste(j);
                        vipDao.supprimerVip(vipSelec);
                        break;
                    case "producteur":
                        Participant p2 = vipDao.trouverParticipant(vipSelec.getId());
                        Producteur pr = vipDao.trouverProducteur(vipSelec.getId());
                        vipDao.supprimerProducteur(pr);
                        vipDao.supprimerParticipant(p2);
                        vipDao.supprimerVip(vipSelec);
                        break;
                    case "realisateur":
                        Participant p3 = vipDao.trouverParticipant(vipSelec.getId());
                        Realisateur r = vipDao.trouverRealisateur(vipSelec.getId());
                        vipDao.supprimerRealisateur(r);
                        vipDao.supprimerParticipant(p3);
                        vipDao.supprimerVip(vipSelec);
                        break;
                    case "sponsor":
                        Sponsor s = vipDao.trouverSponsor(vipSelec.getId());
                        vipDao.supprimerSponsor(s);
                        vipDao.supprimerVip(vipSelec);
                        break;
                    default:
                        break;
                }
            } catch (Exception e) {
                JOptionPane.showMessageDialog(this, e.getMessage());
            }

            //Reset des JTextField
            ajouter.clearSelection();
            nomVIPSelection.setText("");
            prenomVIPSelection.setText("");
            ageVIPSelection.setText("");
            compagnonVIPSelection.setText("");
            nationaliteVIPSelection.setText("");
            coefVIPSelection.clearSelection();
            niveauVIPSelection.clearSelection();
            acteurVIPSelection.setSelected(false);
            realisateurVIPSelection.setSelected(false);
            producteurVIPSelection.setSelected(false);
            sponsorVIPSelection.setSelected(false);
            journalisteVIPSelection.setSelected(false);
            setVisibleFalse();
            VIPAffichage.setVisible(true);
        }
    }//GEN-LAST:event_supprimerVIPSelectionActionPerformed

    private void retourVIPSelectionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retourVIPSelectionActionPerformed
        //Reset des JTextField
        ajouter.clearSelection();
        nomVIPSelection.setText("");
        prenomVIPSelection.setText("");
        ageVIPSelection.setText("");
        compagnonVIPSelection.setText("");
        nationaliteVIPSelection.setText("");
        coefVIPSelection.clearSelection();
        niveauVIPSelection.clearSelection();
        acteurVIPSelection.setSelected(false);
        realisateurVIPSelection.setSelected(false);
        producteurVIPSelection.setSelected(false);
        sponsorVIPSelection.setSelected(false);
        journalisteVIPSelection.setSelected(false);
        setVisibleFalse();
        VIPAffichage.setVisible(true);
    }//GEN-LAST:event_retourVIPSelectionActionPerformed

    // PROJECTIONS //
// Projection Accueil ------
    private void accueilPAccueilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accueilPAccueilActionPerformed
        setVisibleFalse();
        Accueil.setVisible(true);
    }//GEN-LAST:event_accueilPAccueilActionPerformed

    private void connexionPAccueilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connexionPAccueilActionPerformed
        datePAffichage.setDate(datePAccueil.getDate());
        setVisibleFalse();
        ProjectionsAuthentification.setVisible(true);
        identifiantPAuthentification.setText("admin");
        motDePassePAuthentification.setText("admin");
    }//GEN-LAST:event_connexionPAccueilActionPerformed

// Projections Authentification ----- 
    private void connexionPAuthentificationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connexionPAuthentificationActionPerformed
        if (identifiantPAuthentification.getText().isEmpty() && motDePassePAuthentification.getPassword().length == 0) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un identifiant et un mot de passe pour vous connecter !");
        } else if (identifiantPAuthentification.getText().isEmpty()) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un identifiant pour vous connecter !");
        } else if (motDePassePAuthentification.getPassword().length == 0) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer un mot de passe pour vous connecter !");
        } else {
            // Récupération du mot de passe
            String pass = new String(motDePassePAuthentification.getPassword());
            // Vérification mot de passe
            if (identifiantPAuthentification.getText().equals("admin") && pass.equals("admin")) {
                try {
                    datePAffichage.setDate(df.parse(df.format(new Date())));
                } catch (Exception e){
                    JOptionPane.showMessageDialog(this, e.getMessage());
                }
                setVisibleFalse();
                ProjectionsAffichage.setVisible(true);
                listerPAffichage.setFocusable(true);
                boolProj = true;
            } else {
                JOptionPane.showMessageDialog(this, "Combinaison identifiant / mot de passe incorrect !");
            }
        }
    }//GEN-LAST:event_connexionPAuthentificationActionPerformed

    private void accueilPAuthentificationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accueilPAuthentificationActionPerformed
        setVisibleFalse();
        Accueil.setVisible(true);
    }//GEN-LAST:event_accueilPAuthentificationActionPerformed

	private void retourPAuthentificationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retourPAuthentificationActionPerformed
            setVisibleFalse();
            ProjectionsAccueil.setVisible(true);
    }//GEN-LAST:event_retourPAuthentificationActionPerformed

// Projection Affichage -----  
    private void accueilPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_accueilPAffichageActionPerformed
        setVisibleFalse();
        Accueil.setVisible(true);
    }//GEN-LAST:event_accueilPAffichageActionPerformed

    private void ajouterPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ajouterPAffichageActionPerformed
        datePAjouter.setDate(datePAffichage.getDate());
        setVisibleFalse();
        ProjectionsAjouter.setVisible(true);
    }//GEN-LAST:event_ajouterPAffichageActionPerformed

	private void deconnexionPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deconnexionPAffichageActionPerformed
            int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir vous deconnecter ?", "Confirmer", JOptionPane.YES_NO_OPTION);
            if (rep == JOptionPane.YES_OPTION) {
                setVisibleFalse();
                ProjectionsAuthentification.setVisible(true);
                boolProj = false;
            }
    }//GEN-LAST:event_deconnexionPAffichageActionPerformed

    private void modifierPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modifierPAffichageActionPerformed
        if (tablePAffichage.getSelectedRowCount() == 0) {
            JOptionPane.showMessageDialog(this, "Veuillez sélectionner la projection à modifier.");
        } else {
            String horaireSelec = (String) tableProj.getValueAt(tablePAffichage.getSelectedRow(), 0);
            try {
                projSelec = projDao.trouverProjection(datePAffichage.getDate(), horaireSelec);
                filmPModifier.setSelectedItem(projSelec.getFilm());
                sallePModifier.setSelectedItem(projSelec.getSalle());
                datePModifier.setDate(projSelec.getJour());
                horairePModifier.setSelectedItem(projSelec.getHeure());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
            setVisibleFalse();
            ProjectionsModifier.setVisible(true);
        }
    }//GEN-LAST:event_modifierPAffichageActionPerformed

// Projections Modifier -----
    private void retourPModifierActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retourPModifierActionPerformed
        setVisibleFalse();
        ProjectionsAffichage.setVisible(true);
    }//GEN-LAST:event_retourPModifierActionPerformed

    private void supprimerPModifierActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_supprimerPModifierActionPerformed
        int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Supprimer", JOptionPane.YES_NO_OPTION);
        if (rep == JOptionPane.YES_OPTION) {
            //Suppression de la projection
            try {
                projDao.supprimerProjection(projSelec);
            } catch (Exception e) {
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
            // MISE A JOUR DES MODELES
            tableProj.fireTableDataChanged();
            setVisibleFalse();
            ProjectionsAffichage.setVisible(true);
        }
    }//GEN-LAST:event_supprimerPModifierActionPerformed

    private void confirmerPModifierActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmerPModifierActionPerformed
        if (datePModifier.getDate() == null) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer une date !");
        } else {
            int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Confirmer", JOptionPane.YES_NO_OPTION);
            if (rep == JOptionPane.YES_OPTION) {
                try {
                    // Rechercher la salle et le film pour la projection
                    Projection p = new Projection(projSelec.getId(), salleDao.trouverSalle((String) sallePModifier.getSelectedItem()),
                            filmDao.trouverFilm((String) filmPModifier.getSelectedItem()), df.parse(df.format(datePModifier.getDate())),
                            (String) horairePModifier.getSelectedItem());
                    projDao.modifierProjection(p);
                } catch (Exception e) {
                    JOptionPane.showMessageDialog(this, e.getMessage());
                }
                // MISE A JOUR DES MODELES
                tableProj.fireTableDataChanged();
                setVisibleFalse();
                ProjectionsAffichage.setVisible(true);
            }
        }
    }//GEN-LAST:event_confirmerPModifierActionPerformed

// Projections Ajouter -----
    private void retourPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retourPAjouterActionPerformed
        setVisibleFalse();
        ProjectionsAffichage.setVisible(true);
    }//GEN-LAST:event_retourPAjouterActionPerformed

    private void confirmerPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmerPAjouterActionPerformed
        if (datePAjouter.getDate() == null) {
            JOptionPane.showMessageDialog(this, "Veuillez entrer une date !");
        } else {
            int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir continuer ?", "Confirmer", JOptionPane.YES_NO_OPTION);
            if (rep == JOptionPane.YES_OPTION) {
                // AJOUTER UNE PROJECTION EN BASE
                try {
                    // Rechercher la salle et le film pour la projection
                    Projection p = new Projection(salleDao.trouverSalle((String) sallePAjouter.getSelectedItem()),
                            filmDao.trouverFilm((String) filmPAjouter.getSelectedItem()),
                            df.parse(df.format(datePAjouter.getDate())), (String) horairePAjouter.getSelectedItem());
                    projDao.ajouterProjection(p);
                } catch (Exception e) {
                    JOptionPane.showMessageDialog(this, e.getMessage());
                }
                // MISE A JOUR DES MODELES
                tableProj.fireTableDataChanged();
                setVisibleFalse();
                ProjectionsAffichage.setVisible(true);
            }
        }
    }//GEN-LAST:event_confirmerPAjouterActionPerformed

    private void fermetureFenetre(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_fermetureFenetre
        int rep = JOptionPane.showConfirmDialog(this, "Etes-vous sur de vouloir quitter ?", "Confirmer", JOptionPane.YES_NO_OPTION);
        if (rep == JOptionPane.YES_OPTION) {
            HibernateUtil.getSessionFactory().close();
            this.dispose();
        }
    }//GEN-LAST:event_fermetureFenetre

    private void listerPAffichageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listerPAffichageActionPerformed
        if (datePAffichage.getDate() == null) {
            JOptionPane.showMessageDialog(this, "Veuillez choisir une date pour lister les projections !");
        } else {
            try {
                Date d = df.parse(df.format(datePAffichage.getDate()));
                tableProj.charger(d);
            } catch (Exception e) {
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
        }
    }//GEN-LAST:event_listerPAffichageActionPerformed

    private void listerPAccueilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listerPAccueilActionPerformed
        if (datePAccueil.getDate() == null) {
            JOptionPane.showMessageDialog(this, "Veuillez choisir une date pour lister les projections !");
        } else {
            try {
                Date d = df.parse(df.format(datePAccueil.getDate()));
                tableProj.charger(d);
            } catch (Exception e) {
                JOptionPane.showMessageDialog(this, e.getMessage());
            }
        }
    }//GEN-LAST:event_listerPAccueilActionPerformed

    // Appuis sur bouttons dans VIPAjouter, gérer la vue (masquage champs spécifiques aux journalistes, producteurs et sponsors)
    private void acteurVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acteurVIPAjouterActionPerformed
        niveauVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(false);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(false);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(false);
        secteurActiviteVIPAjouter.setText("");
    }//GEN-LAST:event_acteurVIPAjouterActionPerformed

    private void journalisteVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_journalisteVIPAjouterActionPerformed
        niveauVIPAjouter.setEnabled(true);
        employeurVIPAjouter.setEnabled(true);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(false);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(false);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(false);
        secteurActiviteVIPAjouter.setText("");
    }//GEN-LAST:event_journalisteVIPAjouterActionPerformed

    private void realisateurVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_realisateurVIPAjouterActionPerformed
        niveauVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(false);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(false);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(false);
        secteurActiviteVIPAjouter.setText("");
    }//GEN-LAST:event_realisateurVIPAjouterActionPerformed

    private void producteurVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_producteurVIPAjouterActionPerformed
        niveauVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(true);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(false);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(false);
        secteurActiviteVIPAjouter.setText("");
    }//GEN-LAST:event_producteurVIPAjouterActionPerformed

    private void sponsorVIPAjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sponsorVIPAjouterActionPerformed
        niveauVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setEnabled(false);
        employeurVIPAjouter.setText("");
        entrepriseVIPAjouter.setEnabled(false);
        entrepriseVIPAjouter.setText("");
        participationVIPAjouter.setEnabled(true);
        participationVIPAjouter.setText("");
        secteurActiviteVIPAjouter.setEnabled(true);
        secteurActiviteVIPAjouter.setText("");
    }//GEN-LAST:event_sponsorVIPAjouterActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel Accueil;
    private javax.swing.JPanel ProjectionsAccueil;
    private javax.swing.JPanel ProjectionsAffichage;
    private javax.swing.JPanel ProjectionsAjouter;
    private javax.swing.JPanel ProjectionsAuthentification;
    private javax.swing.JPanel ProjectionsModifier;
    private javax.swing.JPanel VIPAffichage;
    private javax.swing.JPanel VIPAjouter;
    private javax.swing.JPanel VIPAuthentification;
    private javax.swing.JPanel VIPSelection;
    private javax.swing.JButton accueilPAccueil;
    private javax.swing.JButton accueilPAffichage;
    private javax.swing.JButton accueilPAuthentification;
    private javax.swing.JButton accueilVIPAffichage;
    private javax.swing.JButton accueilVIPAuthentification;
    private javax.swing.JRadioButton acteurVIPAjouter;
    private javax.swing.JRadioButton acteurVIPSelection;
    private javax.swing.JTextField ageVIPAjouter;
    private javax.swing.JTextField ageVIPSelection;
    private javax.swing.ButtonGroup ajouter;
    private javax.swing.JButton ajouterPAffichage;
    private javax.swing.JButton ajouterVIPAffichage;
    private javax.swing.JLabel banniere;
    private javax.swing.JList coefVIPAjouter;
    private javax.swing.JList coefVIPSelection;
    private javax.swing.JTextField compagnonVIPAjouter;
    private javax.swing.JTextField compagnonVIPSelection;
    private javax.swing.JButton confirmerPAjouter;
    private javax.swing.JButton confirmerPModifier;
    private javax.swing.JButton confirmerVIPAjouter;
    private javax.swing.JButton confirmerVIPSelection;
    private javax.swing.JButton connexionPAccueil;
    private javax.swing.JButton connexionPAuthentification;
    private javax.swing.JButton connexionVIPAuthentification;
    private com.toedter.calendar.JDateChooser datePAccueil;
    private com.toedter.calendar.JDateChooser datePAffichage;
    private com.toedter.calendar.JDateChooser datePAjouter;
    private com.toedter.calendar.JDateChooser datePModifier;
    private javax.swing.JButton deconnexionPAffichage;
    private javax.swing.JButton deconnexionVIPAffichage;
    private javax.swing.JTextField employeurVIPAjouter;
    private javax.swing.JTextField employeurVIPSelection;
    private javax.swing.JTextField entrepriseVIPAjouter;
    private javax.swing.JTextField entrepriseVIPSelection;
    private javax.swing.JComboBox filmPAjouter;
    private javax.swing.JComboBox filmPModifier;
    private javax.swing.JComboBox horairePAjouter;
    private javax.swing.JComboBox horairePModifier;
    private javax.swing.JTextField identifiantPAuthentification;
    private javax.swing.JTextField identifiantVIPAuthentification;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel214;
    private javax.swing.JLabel jLabel215;
    private javax.swing.JLabel jLabel216;
    private javax.swing.JLabel jLabel217;
    private javax.swing.JLabel jLabel218;
    private javax.swing.JLabel jLabel219;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel220;
    private javax.swing.JLabel jLabel221;
    private javax.swing.JLabel jLabel222;
    private javax.swing.JLabel jLabel223;
    private javax.swing.JLabel jLabel224;
    private javax.swing.JLabel jLabel225;
    private javax.swing.JLabel jLabel226;
    private javax.swing.JLabel jLabel227;
    private javax.swing.JLabel jLabel228;
    private javax.swing.JLabel jLabel229;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel30;
    private javax.swing.JPanel jPanel31;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel33;
    private javax.swing.JPanel jPanel34;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane48;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JTable jTable1;
    private javax.swing.JRadioButton journalisteVIPAjouter;
    private javax.swing.JRadioButton journalisteVIPSelection;
    private javax.swing.JButton listerPAccueil;
    private javax.swing.JButton listerPAffichage;
    private javax.swing.JButton modifierPAffichage;
    private javax.swing.JButton modifierVIPAffichage;
    private javax.swing.JPasswordField motDePassePAuthentification;
    private javax.swing.JPasswordField motDePasseVIPAuthentification;
    private javax.swing.JTextField nationaliteVIPAjouter;
    private javax.swing.JTextField nationaliteVIPSelection;
    private javax.swing.JList niveauVIPAjouter;
    private javax.swing.JList niveauVIPSelection;
    private javax.swing.JTextField nomVIPAjouter;
    private javax.swing.JTextField nomVIPSelection;
    private javax.swing.JTextField participationVIPAjouter;
    private javax.swing.JTextField participationVIPSelection;
    private javax.swing.JButton planning;
    private javax.swing.JTextField prenomVIPAjouter;
    private javax.swing.JTextField prenomVIPSelection;
    private javax.swing.JRadioButton producteurVIPAjouter;
    private javax.swing.JRadioButton producteurVIPSelection;
    private javax.swing.JButton quitter;
    private javax.swing.JRadioButton realisateurVIPAjouter;
    private javax.swing.JRadioButton realisateurVIPSelection;
    private javax.swing.JButton retourPAjouter;
    private javax.swing.JButton retourPAuthentification;
    private javax.swing.JButton retourPModifier;
    private javax.swing.JButton retourVIPAjouter;
    private javax.swing.JButton retourVIPSelection;
    private javax.swing.JComboBox sallePAjouter;
    private javax.swing.JComboBox sallePModifier;
    private javax.swing.JTextField secteurActiviteVIPAjouter;
    private javax.swing.JTextField secteurActiviteVIPSelection;
    private javax.swing.ButtonGroup selection;
    private javax.swing.JRadioButton sponsorVIPAjouter;
    private javax.swing.JRadioButton sponsorVIPSelection;
    private javax.swing.JButton supprimerPModifier;
    private javax.swing.JButton supprimerVIPSelection;
    private javax.swing.JTable tablePAccueil;
    private javax.swing.JTable tablePAffichage;
    private javax.swing.JTable tableVIPAffichage;
    private javax.swing.JButton vip;
    // End of variables declaration//GEN-END:variables
}
